home *** CD-ROM | disk | FTP | other *** search
- Path: jupiter.planet.net!usenet
- From: Chris Kemp <chrisk@paladn.com>
- Newsgroups: comp.lang.c++
- Subject: How to initialize an array of structures?
- Date: 11 Jan 1996 04:34:21 GMT
- Organization: Paladin Consultants, Inc.
- Message-ID: <4d240e$nk5@jupiter.planet.net>
- NNTP-Posting-Host: denv30.planet.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
-
- Could someone explain how to do this properly:
-
- struct FUNCTIONMAP
- {
- char *functionname;
- int functionnumber;
- int maxargs;
- int functarg[5];
-
- };
-
- static struct FUNCTIONMAP functionlist[300];
- functionlist[1]={"firstfunction",1,3,2,2,2,0,0} <-- hangs on this line
-
- TIA
-
-